//
// Mani Admin Plugin
//
// Copyright (c) 2010-2013 Giles Millward (Mani). All rights reserved.
//
// This file is part of ManiAdminPlugin.
//
// Mani Admin Plugin is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Mani Admin Plugin is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Mani Admin Plugin.  If not, see <http://www.gnu.org/licenses/>.
//

#if defined ( WIN32 )
#ifndef MANI_WINUTILS
#define MANI_WINUTILS

class CWinSigUtil
{
public:

	CWinSigUtil();
	~CWinSigUtil();

	bool GetLib(void *pAddr);
	void *FindSignature(unsigned char *pSignature);
	
private:
	unsigned char	HexToBin(char hex_char);
	bool			ValidHexChar(char hex_char);

	unsigned char *base_address;
	size_t binary_len;
};

#endif
#endif // defined WIN32
